<h1>Listing domains</h1>

<table>
  <tr>
    <th>Domain</th>
    <th>Local</th>
  </tr>

<% @domains.each do |domain| %>
  <tr>
    <td><%=h domain.domain %></td>
    <td><%=h domain.local %></td>
    <td><%= link_to 'Show', domain %></td>
    <td><%= link_to 'Edit', edit_domain_path(domain) %></td>
    <td><%= link_to 'Destroy', domain, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New domain', new_domain_path %>